package com.neusoft.controller.check;


import com.neusoft.bean.PageBean;
import com.neusoft.service.CheckRequestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/checkrequests")
@CrossOrigin
public class CheckRequestController1 {
    @Autowired
    private CheckRequestService checkRequestService;
//提交y
    @PostMapping("/commitCheckRequest")
    public String commitCheckRequest(@RequestBody Map<String,Object> register){
        return checkRequestService.commitCheckRequest(register);
    }

//    显示已完成的检查y
    @GetMapping("/createPatientRecord")
    public PageBean createPatientRecord(Integer registerId){
        return checkRequestService.createPatientRecord(registerId);
    }
}
